import mysql.connector

import sys
sys.path.append('../')
from db_controlter import DB_controlter

class WebPage(DB_controlter):
    def __init__(self):
        DB_controlter.__init__(self)

    def get_webpages(self):
        self.cursor.execute("SELECT id, text FROM WebPage_webpage")
        return [(i[0], i[1]) for i in self.cursor.fetchall()]
